package com.yunpeng.aidevice.common.vo.user;

import java.io.Serializable;
import java.util.Date;

/**
 * UserPermissionVO 用户拥有权限（单独赋权）数据视图
 *
 * @author : Moore(hemw)
 * @date : 2020-04-14
 */
public class UserPermissionVO implements Serializable {

    /**
     * 用户代码
     */
    private String userCode;

    /**
     * 用户名称
     */
    private String userName;

    /**
     * 权限代码
     */
    private String permissionCode;

    /**
     * 权限名称
     */
    private String permissionName;

    /**
     * 生效起始生效时间
     */
    private Date startDate;

    /**
     * 生效截止时间
     */
    private Date endDate;


    public UserPermissionVO(String userCode, String userName, String permissionCode, String permissionName, Date startDate, Date endDate) {
        this.userCode = userCode;
        this.userName = userName;
        this.permissionCode = permissionCode;
        this.permissionName = permissionName;
        this.startDate = startDate;
        this.endDate = endDate;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPermissionCode() {
        return permissionCode;
    }

    public void setPermissionCode(String permissionCode) {
        this.permissionCode = permissionCode;
    }

    public String getPermissionName() {
        return permissionName;
    }

    public void setPermissionName(String permissionName) {
        this.permissionName = permissionName;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    @Override
    public String toString() {
        return "UserPermissionVO{" +
                "userCode='" + userCode + '\'' +
                ", userName='" + userName + '\'' +
                ", permissionCode='" + permissionCode + '\'' +
                ", permissionName='" + permissionName + '\'' +
                ", startDate=" + startDate +
                ", endDate=" + endDate +
                '}';
    }
}
